<table width="100%" cellspacing="10">
            <tbody>
				<?php $i = 1; $total = count($this->blocks); foreach($this->blocks as $item): $aTitles = explode("-", $item->getCompanyName())?>
					<?php
						echo ($i == 1)? '<tr>' : ''; //special case	
					?>
					<td width="33%" height="">
						 <p id="<?php echo $item->key?>" style="font-size: 15px; text-align: top; margin-left: 10px; margin-top: 40px;"><?php echo $aTitles[0]?></p>
						 <p style="font-size: 12px; text-align: top; margin-left: 10px;"><?php echo $aTitles[1]?></p>
						 <a href="https://embed.spotify.com/?uri=spotify:album:<?php echo $item->key?>" id="<?php echo $item->key?>" onclick="changeFrame(this.href); return false;">
						 <img src="<?php echo $item->getPhotoUrl();?>" style="margin-left: 10px; margin-top: 5px; height: 150px; width: 150px"></a>
					</td>
					<?php 
						echo ($i%3 ==0) ? '</tr><tr>' : '';						
						echo ($i == $total) ? '</tr>' : ''; //special case	
					?>
				<?php $i++; endforeach;?>
            </tbody>
         </table>

<script type="text/javascript">
window.addEvent('domready',function(){
    $('main_tabs').getChildren('li a').addEvent('click', function(e){
        if($(this).getParent().hasClass('tab_layout_webmix_favourite_music')){ 
            $('ifrmpayer').show();
        }
        else{ 
            $('ifrmpayer').hide();
        }
    });
}); 
</script>